package org.example.zpqy.service;

import org.example.zpqy.dto.HistoryResultDTO;
import org.example.zpqy.repository.RecognitionHistoryRepository;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class RecognitionHistoryService {

    @Resource
    private RecognitionHistoryRepository historyRepository;

    // 修改返回类型为DTO列表
    public List<HistoryResultDTO> getAllHistoryResults() {
        return historyRepository.findAllResultsWithTime();
    }
}